<jsp:include page="header.jsp" />
<jsp:include page="sidenav.jsp" />
<div id ="content">

    <h1>Popular Keywords on eBay! - Result</h1>
	<hr />	
	<br />
<% 
	String timestamp = (String) request.getAttribute("timestamp");
	String categoryID = (String) request.getAttribute("categoryID");
	String keywords = (String) request.getAttribute("keywords");
%>

<label>Time requested:</label> <span class="right"><font color=#FF0000><%=timestamp%></font></span><br>
<label>Category ID:</label><span class="right"> <font color=#FF0000><%=categoryID%>

<%
	String categoryName;
	if (categoryID.equals("267")) {
		categoryName = "Books";
	} else if (categoryID.equals("29223")) {
		categoryName = "Antiquarian & Collectible";
	} else if (categoryID.equals("29792")) {
		categoryName = "Audiobooks";
	} else if (categoryID.equals("279")) {
		categoryName = "Children & Young Adults";
	} else if (categoryID.equals("11104")) {
		categoryName = "Cookbooks";
	} else if (categoryID.equals("377")) {
		categoryName = "Fiction & Literature";
	} else if (categoryID.equals("280")) {
		categoryName = "Magazine Back Issues";
	} else if (categoryID.equals("378")) {
		categoryName = "Nonfiction";
	} else if (categoryID.equals("2228")) {
		categoryName = "Textbooks, Education";
	} else {
		categoryName = "Undefined";
	}
%>

(<%=categoryName%>)</font></span><br>
<br>
<label>Keywords:</label><br><br>

<ul id="keylist">
<%
	String[] split = keywords.split(";");
	for (int i = 0; i < split.length; i++) {
%>
		<li class="key"><%=split[i]%></li>
<%
	}
%>
</ul>
</font><br>


</div>
<jsp:include page="footer.jsp" />